
<%@page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@taglib prefix="s" uri="/struts-tags"%>
<%@taglib prefix="x" uri="/soar-bx-tags"%>
<x:HeaderParts modal="true">

</x:HeaderParts>


<x:MainPartsTag modal="true">
	<x:zone name="MainZone">
		<x:Form action="org/users.shtml">
			<x:ParamsParts>
				<x:TextField name="userIds" type="hidden"></x:TextField>
			</x:ParamsParts>
			

			<x:DataViewParts>
				<x:PanelBody>
					<tr>
						<td>所属部门：</td>
						<td><select name="depId"  style="width:200px">
								<option value="">请选择</option>
								<s:iterator value="depList">
									<option value="<s:property value='ID'/>"
										<s:if test="ID==users.DEP_ID">selected="selected"</s:if>>
										<s:if test="PID==000000000000000000"><s:property value="NAME" /></s:if>
										<s:else>&nbsp;&nbsp;&nbsp;&nbsp;<s:property value="NAME" /></s:else>
									</option>
								</s:iterator>
						</select>
						</td>
					</tr>
					
				</x:PanelBody>
				<x:PanelFooter>
					<x:ButtonsParts>
						<x:Button value="保存" role="success" size="sm" onclick="dosave()" />

					</x:ButtonsParts>
				</x:PanelFooter>
			</x:DataViewParts>




			<x:JsParts fn="dosave">
<%-- function selectDep(obj)
{
	var id = obj.value;
		$.ajax({ 
				
				url:"<so:Contetx />/org/users!selectDep.shtml?orgId="+id, 
				success:function(msg){
					$("#dep").html(msg); 
				}, 
				error:function(){ 
					alert("wrong"); 
				} 
			}); 
} --%>
function dosave()
	{
		X.Submit("changeDep","1",true);
	};

			</x:JsParts>
		</x:Form>
	</x:zone>
</x:MainPartsTag>
